<template>
  <div>
    <el-card>
      <h3>文件上传</h3>
    </el-card>
    <el-card v-if="this.CsvRole=='admin'">
      <AdminPage></AdminPage>
    </el-card>
    <el-card v-if="this.CsvRole=='guest'">
      <UserPage></UserPage>
    </el-card>
  </div>
</template>

<script>
import AdminPage from '../components/AdminUpload.vue'
import UserPage from '../components/UserUpload.vue'

export default {
  components:{
    AdminPage,
    UserPage
  },
  data() {
    return {
      CsvRole:''
     
    };
  },
  created(){
    this.CsvRole = localStorage.getItem('CsvRole');
    console.log(this.CsvRole);
  },
  methods: {
    

  },
};
</script>

<style lang="scss" scoped></style>
